package com.newly.common.base.entity.business.enums;

/**
 * @anthor sbq
 * @date 2021/10/29 10:08
 */
public enum CompanyType {

    空(-1),
    国有(0),
    集体(1),
    股份制(2),
    私有(3),
    其他(4);

    CompanyType(int code) {
        this.code = code;
    }

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static CompanyType getCompanyType(int s) {
        for (CompanyType t : CompanyType.values()) {
            if (t.getCode() == s) {
                return t;
            }
        }
        return 空;
    }


}
